
<meta charset="UTF-8">
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.css">
<link rel="stylesheet" href="css/jqm-docs.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.jfeed.pack.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.1.0.js"></script>
<script type="text/javascript" src="js/storage.js"></script>
<script type="text/javascript" src="js/skin.js"></script>
<link id="skin" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/skin.js"></script>
<div id="customRssPage" data-role="page" class="jqm-page">
	<script type="text/javascript">
		function insertRssN() {
			var data = {
				name : $("#customRssName").val(),
				link : $("#coustomRssLink").val(),
				flag : $("#coustomRssFlag").val()
			};
			if (data.name == "") {
				alert("标题不能为空")
				$("#customRssName").focus();
			} else if (data.link == "") {
				alert("地址不能为空")
				$("#coustomRssLink").focus();
			} else if (data.flag == "") {
				alert("标签不能为空")
				$("#coustomRssFlag").focus();
			} else {
				insertRss(data, function() {
					$.mobile.changePage("index.html", {
						reverse : true,
						transition : "none"
					});
				});
				//	$.mobile.changePage("index.html");
			}
		}
	</script>
	<div data-role="header">
		<a href="index.html" class='ui-btn-right' data-icon="home" data-transition="none">主页</a>
		<h1>添加RSS订阅</h1>
		<a href="addRssNews.html" class='ui-btn-left' data-icon="back" data-transition="none">返回</a>
	</div>
	<div data-role="content">
		<input type="hidden" name="noteId" id="noteId" value="">
		<div data-role="fieldcontain">
			<label for="customRssName">标题(例如:国内新闻)</label> <input type="text" name="customRssName" id="customRssName">
		</div>
		<div data-role="fieldcontain">
			<label for="coustomRssLink">地址(例如:http://rss.news.sohu.com/rss/guonei.xml)</label> <input type="text" name="coustomRssLink" id="coustomRssLink">
		</div>
		<div data-role="fieldcontain">
			<label for="coustomRssFlag">来源(例如:搜狐)</label> <input type="text" name="coustomRssFlag" id="coustomRssFlag">
		</div>
		<div data-role="fieldcontain" align="center">
			<a data-role="button" data-inline="true" onclick="insertRssN()">添加</a> <a data-role="button" data-inline="true" data-rel="back" data-transition="none">取消</a>
		</div>
	</div>
</div>
